<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<link href="<?php echo SKIN_PATH;?>product.css" rel="stylesheet" type="text/css" />
<!--begin main-->
<div id="main">
  <!--begin left-->
  <div id="mian_l_1">
    <div class="product_nav_top">
      <h3>推荐产品</h3>
    </div>
    <div class="product_nav">
<ul class="pic_list">
       <?php echo tag('phpcms', 'tag_content_pic', "SELECT a.contentid,a.catid,a.typeid,a.areaid,a.title,a.style,a.thumb,a.keywords,a.description,a.userid,a.updatetime,a.inputtime,a.posids,a.url FROM `phpcms_content` a, `phpcms_content_position` p WHERE a.contentid=p.contentid AND p.posid=5 AND a.status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY a.contentid DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '10',  'width' => '82',  'height' => '54',));?>
  </ul>
</div>
    <div class="product_nav_btm"></div>
<?php echo block("list_$catid", 1);?>
    <div class="product_nav_top mar_10">
      <h3>产品搜索</h3>
    </div>
    <div class="product_nav">
<?php include template('phpcms','product_search_table'); ?>
    </div>
    <div class="product_nav_btm"></div>
  </div>
  <div id="mian_r_1">
    <div class="bdr_1">
      <p id="position"><a href="">首页</a><?php echo catpos($r['catid']);?>产品详情</p>
      <dl class="product_show">
        <dt><font color="#FF0000"><?php echo $title;?></font></dt>
        <dd class="product_pic_s"><a href="more_pic.php?contentid=<?php echo $contentid;?>"><img src="<?php echo thumb($r[thumb],200,136);?>" alt="" width="200" height="136" /><br />
          <a href="more_pic.php?contentid=<?php echo $contentid;?>">查看更多图片</a></dd>
        <dd class="product_attribute_s">编号：<?php echo $contentid;?>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;浏览次数：<span id="hits">0</span>次</dd>
        <dd class="product_attribute_s">库存：<?php echo $stock;?><?php echo $unit;?></dd>
        <dd class="product_attribute_s">价格：<font color="#FF0000"><?php echo $price;?>元/<?php echo $unit;?></font></dd>
        <dd class="product_attribute_s"><a href="<?php echo $MODULE['order']['url'];?>order.php?number=1&goodsid=content_<?php echo $contentid;?>&goodsname=<?php echo urlencode($title);?>&goodsurl=<?php echo urlencode($url);?>&unit=<?php echo urlencode($unit);?>&price=<?php echo $price;?>&carriage=<?php echo $carriage;?>&stock=<?php echo $stock;?>&verify=<?php echo md5(AUTH_KEY.'content_'.$contentid.$title.$url.$unit.$price.$carriage.$stock);?>"><img src="images/buy.gif" alt="订购产品" width="130" height="40" style="margin:8px"/></a></dd>
      </dl>
      <h4>产品描述</h4>
      <div class="product_txt_1"><?php echo $description;?></div>
        <h4>产品参数</h4>
        <table align="center" cellpadding="0" cellspacing="1" class="diy_attribute">
          <tr>
            <th>产品型号</th><td><?php echo $size;?></td>
          </tr>
          <tr>
            <th>推荐等级</th><td><?php echo $stars;?></td>
          </tr>
        </table>
        <h4>产品介绍</h4>
        <div class="product_txt_1">
        <?php echo $content;?>
        </div>
      </div>
    </div>
  </div>
</div>
<!--end main-->
<script language="JavaScript" src="count.php?contentid=<?php echo $contentid;?>"></script>
<?php include template('phpcms','footer'); ?>